import { createMemoryHistory, createRouter, createWebHistory } from 'vue-router'

import Paper from '../pages/Paper.vue'
import Question from '../pages/Question.vue'
import Welcome from '../pages/Welcome.vue'

const routes = [
  { path: '/', redirect: '/welcome' },
  { path: '/welcome', component: Welcome },
  { path: '/question', component: Question },
  { path: '/paper', component: Paper },
]

const router = createRouter({
  history: createWebHistory(),
  routes,
})

export default router